@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
  min-height: calc(100vh - 50px)
}

// 列表按钮区域
.btn-container {
  margin-bottom: 20px;
}

// 表单页面 底部固定定位的按钮区域
.submit-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 99;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  height: 60px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 -6px 16px -8px rgba(0,0,0,.08), 0 -9px 28px 0 rgba(0,0,0,.05), 0 -12px 48px 16px rgba(0,0,0,.03);
}


// 可编辑表格内input表单验证错误信息的样式修改
.editTable {
  .el-form-item__error {
      position: relative;
      padding-top: 0;
      padding-bottom: 4px;
  }
}

// 单行文字超出省略号显示
.ellipsis {
  display: -webkit-box; /*作为弹性伸缩盒子模型显示*/
  -webkit-line-clamp: 1; /*显示的行数；如果要设置2行加...则设置为2*/
  overflow: hidden; /*超出的文本隐藏*/
  text-overflow: ellipsis; /* 溢出用省略号*/
  -webkit-box-orient: vertical; /*伸缩盒子的子元素排列：从上到下*/
}

// 表格中的下来菜单
table .el-dropdown {
  margin-left: 10px;
}

// 表单页面和详情页面底部
.form-page, .detail-page {
  padding-bottom: 60px;
}

// 表单页面区域分割

.form-section {
  .title {
    font-size: 16px;
    font-weight: bold;
    padding-bottom: 15px;
    border-bottom: 1px solid #EBEEF5;
    margin-bottom: 15px;
  }
  margin-bottom: 50px;
  &:last-of-type {
    margin-bottom: 0;
  }
}

// 详情页面区域分割
.detail-section {
  .title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 30px;
  }
  margin-bottom: 30px;
  border-bottom: 1px solid#EBEEF5;
  &:last-of-type {
    margin-bottom: 0;
    border-bottom: none
  }
}

.mr10 {
  margin-right: 10px;
}

.ml10 {
  margin-left: 10px;
}

.mt10 {
  margin-top: 10px;
}

.mb10 {
  margin-bottom: 10px;
}

.pr10 {
  padding-right: 10px;
}

.pl10 {
  padding-left: 10px;
}

.pt10 {
  padding-top: 10px;
}

.pb10 {
  padding-bottom: 10px;
}
